<template>
    <view class="weui-cells weui-cells_after-title">
        <view class="weui-cell" v-for="(item, index) in QgPeople" :key="index">
            <view class="weui-cell__hd">
                <image :src="item.user_img"></image>
            </view>

            <view class="weui-cell__bd">{{ item.user_name }}</view>

            <view class="weui-cell__ft">{{ item.pay_time }}</view>
        </view>
    </view>
</template>

<script>
import cardlist from '@/ymq_canyino2o/dist/cardlist/index';
import gettel from '@/ymq_canyino2o/dist/gettel/index';
var app = getApp();
export default {
    components: {
        cardlist,
        gettel
    },
    data() {
        return {
            QgPeople: ''
        };
    },
    onLoad: function (o) {
        uni.setNavigationBarTitle({
            title: '已抢购用户'
        });
        console.log(o);
        app.globalData.setNavigationBarColor(this);
        var that = this;
        app.globalData.util.request({
            url: 'entry/wxapp/QgPeople',
            cachetime: '0',
            data: {
                good_id: o.goodid
            },
            success: function (o) {
                console.log(o.data);
                that.setData({
                    QgPeople: o.data
                });
            }
        });
    },
    onReady: function () {},
    onShow: function () {},
    onHide: function () {},
    onUnload: function () {},
    onPullDownRefresh: function () {},
    onReachBottom: function () {},
    onShareAppMessage: function () {},
    methods: {}
};
</script>
<style>
@import './yqgyh.css';
</style>
